﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using zielonka.co.uk.test.framework.time;

namespace zielonka.co.uk.extensions.system.tests
{
    [TestClass]
    public class IsPastTests
    {
        [TestMethod]
        public void ReturnsTrueWhenPassedAPassedDate()
        {
            var expected = true;
            DateTime pastDate = new PastClock().Now;
            var actual = pastDate.IsPast();
            Assert.AreEqual(expected ,actual);
        }
        [TestMethod]
        public void ReturnsFalseWhenPassedAFutureDate()
        {
            var expected = false;
            DateTime pastDate = new FutureClock().Now;
            var actual = pastDate.IsPast();
            Assert.AreEqual(expected, actual);
        }
    }
}
